package com.feidee.data.report.model;

public class SqlInfoModel {

    private String sqlContent;
    private String sqlType;
    private String sqlSource; // 查询引擎
    private String sqlHistory; // 历史sql

    public String getSqlContent() {
        return sqlContent;
    }

    public void setSqlContent( String sqlContent ) {
        this.sqlContent = sqlContent;
    }

    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType( String sqlType ) {
        this.sqlType = sqlType;
    }

    public String getSqlSource() {
        return sqlSource;
    }

    public void setSqlSource( String sqlSource ) {
        this.sqlSource = sqlSource;
    }

    public String getSqlHistory() {
        return sqlHistory;
    }

    public void setSqlHistory( String sqlHistory ) {
        this.sqlHistory = sqlHistory;
    }

    @Override
    public String toString() {
        return "SqlInfoModel [sqlContent=" + sqlContent + ", sqlType=" + sqlType + ", sqlSource=" + sqlSource
                + ", sqlHistory=" + sqlHistory + "]";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SqlInfoModel that = (SqlInfoModel) o;

        if (sqlContent != null ? !sqlContent.equals(that.sqlContent) : that.sqlContent != null) return false;
        if (sqlType != null ? !sqlType.equals(that.sqlType) : that.sqlType != null) return false;
        if (sqlSource != null ? !sqlSource.equals(that.sqlSource) : that.sqlSource != null) return false;
        return sqlHistory != null ? sqlHistory.equals(that.sqlHistory) : that.sqlHistory == null;

    }

    @Override
    public int hashCode() {
        int result = sqlContent != null ? sqlContent.hashCode() : 0;
        result = 31 * result + (sqlType != null ? sqlType.hashCode() : 0);
        result = 31 * result + (sqlSource != null ? sqlSource.hashCode() : 0);
        result = 31 * result + (sqlHistory != null ? sqlHistory.hashCode() : 0);
        return result;
    }
}
